#ifndef LOGINDLG_H
#define LOGINDLG_H

#include <QDialog>

class QLabel;
class QLineEdit;
class QPushButton;

class LoginDlg : public QDialog
{
    Q_OBJECT

public:
    LoginDlg(QWidget *parent = 0);

private slots:
    void Addusr();
    bool Login();

private:
    void paintEvent(QPaintEvent *);
    void CreateWidget();

    QLabel *bannerLabel;
    QLabel *usrNameLabel;
    QLabel *pwdLabel;
    QLineEdit *usrNameLineEdit;
    QLineEdit *pwdLineEdit;
    QPushButton *addUsrBtn;
    QPushButton *loginBtn;
    QPushButton *cancleBtn;

    QString usrName;
    QString pwd;
};

#endif // LOGINDLG_H
